# 元组 元素不可变
# 定义元祖
dimensions = (200,50)
print(dimensions[0])
print(dimensions[1])

my_t = (3,) # 定义元组必须有逗号，否则不认为是元组

# 遍历元组
dimensions = (200,50)
for dimension in dimensions:
    print(dimension)

# 修改元组变量  只能通过重新定义整个元组
dimensions = (200,50)
for dimension in dimensions:
    print(f"original:{dimension}")

dimensions = (500,700)
for dimension in dimensions:
    print(f"now:{dimension}")


